package com.dc.service;

import com.dc.model.User;
import com.dc.vo.BaseModel;
import org.springframework.stereotype.Service;

public interface UserService {
//    分页查询所有用户
    BaseModel selectPageUser(Integer curr_page, Integer page_size, BaseModel baseModel) throws Exception;
//    新增用户信息
    BaseModel addUser(User user,BaseModel baseModel) throws Exception;
//    登录
    BaseModel login(String account,String password,BaseModel baseModel) throws Exception;
//    修改用户
    BaseModel updateUser(User user,BaseModel baseModel) throws Exception;
//    批量删除用户
    BaseModel deletedUser(String ids,BaseModel baseModel) throws Exception;
//    按姓名查询用户
    BaseModel selectPageByName(String name,Integer curr_page, Integer page_size,BaseModel baseModel) throws Exception;
//    按id查询用户
    BaseModel selectUserById(int id,BaseModel baseModel) throws Exception;
//    修改用户状态
    BaseModel updateUserState(int id,int state,BaseModel baseModel) throws Exception;
//    手机号码验证登录
    BaseModel codeLogin(String phone,BaseModel baseModel)throws Exception;
}
